<html>
<body>
<div ng-controller="WelcomeController">
  {{greeting}}
</div>
<!--在页面所有代码加载完成后，找到html模板根节点(典型为document元素).
调用api/angular.bootstrap（angular.bootstrap(element[, modules])）编译模板使其可执行.-->
<script type="text/javascript" src="../js/angular.js" ></script>
<script>
  var app = angular.module('demo', [])
  .controller('WelcomeController', function($scope) {
      $scope.greeting = 'Welcome!';
  });
  angular.bootstrap(document, ['demo']);
</script>
</body>
</html>